<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>加载地图</title>
    <!--设置地图-->
    <link rel="stylesheet" href="{{asset('/default/css/company/set_map_iframe.css')}}">
    <script type="text/javascript" src="{{asset('/default/js/jquery.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/public.js')}}"></script>
    <script type="text/javascript" src="{{asset('/vendor/org/layer/layer.js')}}"></script>
    <script>
        var longitude = '{{Site::get('longitude')}}';
        var latitude = '{{Site::get('latitude')}}';
        var address = '{{Site::get('address')}}';
    </script>
    <script type="text/javascript" src="{{getRequestType()}}://api.map.baidu.com/api?v=2.0&ak={{Site::get('mapKey')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/company/set_iframesetmap.js')}}"
    ></script>
</head>
<body>
<!--选择地图定位map-->
<div class="mapcon" style="width:898px;">
    <div class="mtop">
        <div class="msearch">
            <form name="" method="post" onsubmit="return searchMap()">
                {{csrf_field()}}
                {{--<input name="id" type="hidden" id="id" value="{{$CompanyBasic->id}}">--}}
                <input name="position" type="hidden" id="position"
                value="@if($info->longitude){{$info->longitude}},{{$info->latitude}},{{$info->coordinate_address}}@endif">
                <input name="seaVal" type="text" value="" id="seaVal" placeholder="输入路名或公司附近知名建筑"/>
                <input name="submit" id="subsearch" class="subSearch" type="submit" value="搜索"/>
            </form>
        </div>
        <div class="coordinate"><span class="coordinatetext">坐标：</span><span id="maplng"></span><span id="maplat"></span></div>
    </div>
    <div class="screenmap" style="width:898px;">
        <div class="mleft" id="mapshow" style="width:656px;"></div>
        <div class="mright" id="mright"></div>
    </div>
</div>
</body>
</html>